<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="format-detection" content="telephone=no,email=no,adress=no"/>
<title>先花花</title>
<link rel="stylesheet" type="text/css" href="css/common.css" />
<script type="text/javascript" src="script/jquery.js"></script>
<script type="text/javascript" src="script/jquery.md5.js"></script>
<script type="text/javascript" src="script/jquery.cookie.js"></script>
<!--浮动-->
<div class="dropMask"></div>
<div class="dragBtn"></div>
<div class="dropBox">
  <div class="dropSkin"></div>
  <!-- 请求地址 -->
<ul class="dropList">
     <li class="nth-child_1"> <a href="index.html" class="dropIco"></a>
      <p>首页</p>
    </li>
    <li class="nth-child_2"> <a href="list.html" class="dropIco"></a>
      <p>投资</p>
    </li>
    <li class="nth-child_3"> <a href="user.html" class="dropIco"></a>
      <p>个人中心</p>
    </li>
    <li class="nth-child_4"> <a href="register.html" class="dropIco"></a>
      <p>注册</p>
    </li>
    <li class="nth-child_5"> <a href="login.html" class="dropIco"></a>
      <p>登录</p>
    </li>

  </ul>
</div>
<script src="script/index.js"></script>
<script src="script/jquery-ui.min.js"></script>
<script type="text/javascript">
    $(function(){
        uid = $.cookie('userid');
          if(isNaN(uid)){
     alert("请先登录");
       window.location.href="login.html";
      }else{
          appid = $.md5("123");
          appkey = $.md5("1aaaa");
          queryBalance();
        }
        $("#logout").click(function(){
          $.cookie("userid",null);
          window.location.href='login.html'
        })
    });
    function queryBalance(){
      $.ajax({
          url:"http://47.93.21.169/old/TP5/public/index.php/index/Userinfo/index",
          data:{appid:appid,appkey:appkey,uid:uid},
          type:"get",
          dataType:"jsonp",
          jsonp:"callback",
          success:function(result){
            $("#yue").html(result.data.money);
            $(".username").html(result.data.tel1);
          }
      });
    }
</script>
</head>
<body>
<!-- 页面头部 -->
<section>
  <div class="navigation-bar"> <a href="#" class="z-04"></a> <span>会员中心</span> <a href="index.html" class="z-03"></a> </div>
</section>
<!-- 中间内容 -->
<div class="summary">
  <div class="head"><img id="photoImage" src="images/avatar1.png" alt="" style="width:80px;height:80px;z-index:0;"> <span class="username">zhuchaoyou</span>
    <div class="headamount">
      <div class="p-amount"> <i>0.00 </i><br>
        累计收益（元） </div>
      <div class="p-amount"> <i>
        <label id="yue"> </label>
        </i><br>
        可用余额（元） </div>
    </div>
  </div>
</div>
<div class="personal">
  <div class="personal-list"> 
    <a class="plist" href="topup.html"><span class="picon1"></span><span class="ptit">充值</span><span class="iconarrow"></span> </a>
     <a class="plist" href="deposits.html"> <span class="picon2"></span><span class="ptit">投资记录</span><span class="iconarrow"></span> </a> 
      <a class="plist" href="borrowhis.html"> <span class="picon2"></span><span class="ptit">借款记录</span><span class="iconarrow"></span> </a> 
     <a class="plist" href="recharge.html"> <span class="picon7"></span><span class="ptit">我的银行卡</span><span class="iconarrow"></span> </a>
    </div>
  <div class="personalout"> <a class="plist" href="systemmessage.html"> <span class="picon5"></span><span class="ptit">系统消息</span><span class="iconarrow"></span> </a> </div>
  <div class="personalout"> <a class="plist" href="securitysettings.html"> <span class="picon4"></span><span class="ptit">安全设置</span><span class="iconarrow"></span> </a> </div>
  <div class="personalout"> <a class="plist" href="#" id="logout"> <span class="picon6"></span><span  class="ptit">退出账号</span><span class="iconarrow"></span> </a> </div>
</div>
<!-- 页面底部 -->
<nav class="footer border_t" id="footer"> <a href="index.html" class="" id="jx"><span></span>首页</a> <a href="list.html" id="lc" class=""><span></span>理财</a> <a href="borrow_money.html" id="jk" class=""><span></span>借款</a> <a href="user.html" id="cf" class="nav_on"><span></span>我的账户</a> </nav>
</body>
</html>
